home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_tut / altchar.c < prev    next >
C/C++ Source or Header  |  1996-01-30  |  678b  |  28 lines

  1. /*
  2.    ALTCHAR.C   Ver. 3.00   22-AUG-1994
  3.  
  4.    Software Innovations Technology
  5.    1083 Mandarin Drive NE, Palm Bay, FL 32905-4706   (407)951-0233
  6.  
  7.    This file is for use with UNIX.ADA.
  8.  
  9.    ALTCHAR.C is a simple solution to the single-character input problem.
  10.    It was sent to us by Mr. Richard Conn, 2700 Bowline Court, Maineville,
  11.    OH  45039.  Software Innovations Technology is grateful to Mr. Conn for
  12.    permission to include ALTCHAR.C with ADA-TUTR.
  13.  
  14.    For this to work, surround the ada_tutr invocation with
  15.       stty raw
  16.       ada_tutr
  17.       stty -raw
  18. */
  19. #include <stdio.h>
  20.  
  21. char onechar()
  22. {
  23.    char c;
  24.  
  25.    c = getchar();
  26.    return (c);
  27. }
  28.